const { execSync } = require('child_process');
const path = require('path');

// 打印当前目录
console.log('Current directory:', process.cwd());

try {
  console.log('Starting mock server...');
  require('./mock-server');
  
  console.log('Starting Vue development server...');
  execSync('npx vue-cli-service serve', { 
    stdio: 'inherit',
    shell: 'cmd.exe'
  });
} catch (error) {
  console.error('Error starting servers:', error);
} 